package top.healthylife.springbootdemo01.dao;

import org.apache.ibatis.annotations.*;
import top.healthylife.springbootdemo01.domain.Student;

import java.util.List;

/**
 * @author GaoZeXi
 */
@Mapper
public interface StudentMapper {
    @Delete("delete from student where id =#{id}")
    int deleteById(Integer id);
    @Select("select * from student")
    List<Student> findAll();
    @Update("update student set ${param2} =#{param3} where id = #{id}")
    void updateById(@Param("id") Integer id,  String field, String value);
}